package grouuu.data;

/**
 * ...
 * @author Grouuu
 */
class TileData
{
	public var id:Int;
	public var name:String;
	public var col:Int;
	public var row:Int;
	public var color(default, null):UInt;
	public var solid:Bool;

	public function new() { }
	
	public function setColor(data:Dynamic):Void
	{
		var r:UInt = Reflect.field(data, "red");
		var g:UInt = Reflect.field(data, "green");
		var b:UInt = Reflect.field(data, "blue");
		
		color = (r << 16) | (g << 8) | b;
	}
}